﻿using Clipper.Model.DataBaseModel;
using ClipperBaseUI.Controls;
using Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using static Clipper.Model.DataBaseModel.DisplayCup;

namespace Clipper.ClipperWindow
{
    /// <summary>
    /// WinDetectCancel.xaml 的交互逻辑
    /// </summary>
    public partial class WinDetectCancel : BaseWindow
    {
        public WinDetectCancel()
        {
            InitializeComponent();
        }
        DisplayCup displayModel = null;

        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            displayModel = this.Tag as DisplayCup;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            ServiceProvider.Monitor.DisplayCup[displayModel.CupSeatID-1].setStatus(CheckCancelEnum.CANCEL);
            this.Close();
        }
    }
}
